use std::{fs::File, io::BufRead};

use solutiont7::DistrictData;

fn main() {
    let d = DistrictData::new("data");
    let f = File::open("raw/input.txt").unwrap();
    let reader = std::io::BufReader::new(f);
    for line in reader.lines() {
        let line = line.unwrap();
        let v: Vec<&str> = line.splitn(2, char::is_whitespace).collect();
        d.insert_code(v[0].trim(), v[1].trim()).unwrap()
    }
}
